package org.jeecg.modules.system.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.system.entity.SysPermission;
import org.jeecg.modules.system.entity.SysTenant;

import java.util.List;

public interface SysTenantMapper extends BaseMapper<SysTenant> {
    List<SysPermission>  getPerList();
    @InterceptorIgnore(tenantLine = "1")
    int deleteTenantRoleData(@Param("id")String id);
    @InterceptorIgnore(tenantLine = "1")
    int deleteTenantRolePerData(@Param("id")String id);
    @InterceptorIgnore(tenantLine = "1")
    int deleteTenantSysPerData(@Param("id")String id);
    @InterceptorIgnore(tenantLine = "1")
    int deleteTenantUserRoleData(@Param("id")String id);
    @InterceptorIgnore(tenantLine = "1")
    int deleteTenanSysRoletData(@Param("id")String id);
    @InterceptorIgnore(tenantLine = "1")
    int deleteTenantUserDepData(@Param("id")String id);
    @InterceptorIgnore(tenantLine = "1")
    Integer deleteTenantSysDepData(@Param("id")String id);
    @InterceptorIgnore(tenantLine = "1")
    Integer deleteTenantSysPerDataRole(@Param("id")String id);
}
